package demo3;
import demo2.Test01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-05-18
 * Time: 16:11
 */

class Student{
    public void func1(){
        System.out.println("学生类");
    }
}
class Teacher{
    public void func2(){
        System.out.println("老师类");
    }
}
class School{
    public Student[] students;
    public Teacher[] teachers;
    //构造方法
    public School(){
        this.students = new Student[10];//10个学生
        this.teachers = new Teacher[10];//10个老师
    }
}
public class Testdemo01{

    public static void main(String[] args) {
        School school = new School();
        /*for (int i = 0; i < school.students.length; i++) {
            school.students[i] =
        }*/
    }
}
